package plane;

import mainwindow.Window;
import reward.AddScore;
import reward.Reward;

import java.awt.image.BufferedImage;

public class BigPlane extends FlyingObject implements AddScore,Reward {
    private int speed = 1;
    private int score = 100;
    private int life = 0;
    private int rewardType = (int)(Math.random()*2);

    public BigPlane(){
        image = Window.bigplane;
        imageHeight = image.getHeight();
        imageWidth = image.getWidth();
        x = (int)(Math.random() * (Window.WIDTH - imageWidth));
        y = -imageHeight;
        health = 5;
    }

    @Override
    public void move() {
        y += speed;
    }

    @Override
    public int addScore() {
        return this.score;
    }

    @Override
    public int rewardType() {
        return this.rewardType;
    }
}
